package com.victor.entity.partner.hotel;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.victor.entity.activity_tuikuan.ActJifen;
import com.victor.entity.activity_tuikuan.ActManjian;
import com.victor.entity.activity_tuikuan.ActMiaosha;
import com.victor.entity.activity_tuikuan.ActTuangou;
import com.victor.entity.activity_tuikuan.TuikuanSetup;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 宾馆房间信息
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "hotel_room")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class HotelRoom {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "r_id", unique = true, nullable = false, length = 11)
	private Integer r_id;

	@Column(name = "h_id", length = 50)
	private String h_id;// 宾馆表id

	@Column(name = "r_name", length = 50)
	private String r_name;// 宾馆房间名称

	@Column(name = "r_price", length = 50)
	private String r_price;// 宾馆房间价格

	@Column(name = "r_ifwifi", length = 50)
	private String r_ifwifi;// 宾馆房间是否有免费wifi

	@Column(name = "r_ifwindow", length = 50)
	private String r_ifwindow;// 宾馆房间是否有窗

	@Column(name = "r_ifbreakfast", length = 50)
	private String r_ifbreakfast;// 宾馆房间是否有早餐

	@Column(name = "r_roomsize", length = 50)
	private String r_roomsize;// 宾馆房间平米

	@Column(name = "r_bedtype", length = 50)
	private String r_bedtype;// 宾馆房间床类型

	@Column(name = "r_upordowntype", length = 50)
	private String r_upordowntype;// 房间上下架状态 0 上架 1下架

	@Transient
	private List<HotelRoomLabel> hotelRoomLabels;// 自定义多个标签

	@Transient
	private List<HotelRoomExplain> hotelRoomExplains;// 多个预定说明

	@Transient
	private List<HotelRoomPhoto> hotelRoomPhotos;// 多张房间介绍图片

	@Transient
	private List<HotelRoomKeshou> hotelRoomKeshous;// 可售数量

	/** 退款活动相关 */
	@Column(name = "if_tuikuan", length = 50)
	private String if_tuikuan;// 是否可以退款 1不可退 2 可以随时退 3 条件退款

	@Column(name = "if_join_activity", length = 50)
	private String if_join_activity;// 是否参加活动 0 不参加 1参加

	@Column(name = "join_activity_type", length = 50)
	private String join_activity_type;// 参加活动类型 1 团购活动 2 秒杀活动 3 满减活动 4 积分兑换活动

	@Transient
	private TuikuanSetup tuikuanSetup;// 退款设置信息

	@Transient
	private ActTuangou actTuangou;// 团购

	@Transient
	private List<ActMiaosha> actMiaoshas;// 商品参加的秒杀活动

	@Transient
	private List<ActManjian> actManjians;// 满减活动list

	@Transient
	private ActJifen actJifen;// 积分表
}
